package com.probiz.estore.imports.model;

import java.util.HashMap;
import java.util.Map;

/**
 * 当前处理导入的对象的Model类，
 *
 */
public class ImportModel {
	public static final Short 	RESULT_SUCCESS = (short)1;  //表示设置该数据成功
	public static final Short 	RESULT_ERROR = (short)-1;  //表示处理失败，该条数据无法处理
	public static final Short 	RESULT_IGNORE = (short)0;   //表示无值或无法处理，可以忽略该信息的设置
	/**
	 * 清除当前数据处理信息
	 */
	public void clear(){
		result=null;
		msg=null;
		update=false;
	}
	/**
	 * 导入对象
	 */
	private Object target;
	
	private Map<String,Object> importTargetData=new HashMap<String, Object>();
	
	/**
	 * 导入状态
	 */
	private Short  result;
	
	/**
	 * 当前数据处理返回信息
	 */
	private String msg;
	/**
	 * 用于标示当前处理的深度
	 */
	private Integer level;
	
	
	/**
	 * 当前处理的是否更新操作
	 */
	private boolean update;
	
	/**
	 * 当前导入数据的管理员ID
	 */
	private Integer appUserId;
	
	public Integer getAppUserId() {
		return appUserId;
	}


	public void setAppUserId(Integer appUserId) {
		this.appUserId = appUserId;
	}


	public Object getTarget() {
		return target;
	}


	public void setTarget(Object target) {
		this.target = target;
	}


	public Map<String, Object> getImportTargetData() {
		return importTargetData;
	}


	public void setImportTargetData(Map<String, Object> importTargetData) {
		this.importTargetData = importTargetData;
	}


	public Short getResult() {
		return result;
	}


	public void setResult(Short result) {
		this.result = result;
	}


	public String getMsg() {
		return msg;
	}


	public void setMsg(String msg) {
		this.msg = msg;
	}
	

	public Integer getLevel() {
		return level;
	}


	public void setLevel(Integer level) {
		this.level = level;
	}


	public boolean isUpdate() {
		return update;
	}


	public void setUpdate(boolean update) {
		this.update = update;
	}
	
	
	
}
